#define _CRT_SECURE_NO_WARNINGS 1
int* twoSum(int* numbers, int numbersLen, int target, int* returnSize) {
    // write code here
    int* arr = (int*)malloc(sizeof(int) * 2);
    *returnSize = 2;

    for (int i = 0; i < numbersLen - 1; i++)
    {
        if (numbers[i] > target)
            continue;
        for (int j = i + 1; j < numbersLen; j++)
        {
            int sum = numbers[i] + numbers[j];
            if (sum == target)
            {
                arr[0] = i + 1;
                arr[1] = j + 1;
                return arr;
            }
        }
    }
    return 0;
}